package cn.sunline.dreamvalue.dto;

import lombok.Data;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

/**
 * @author 11292
 * @title: DreamValueSubtractInDTO
 * @projectName dream-value
 * @description: 调减接口请求体DTO
 * @date 2020/5/717:39
 */
public class DreamValueSubtractInDTO {
    //梦想账号
    private String dreamValueNo;
    //梦想账号类型
    private String type;
    //交易流水号
    private String transNo;
    //交易描述
    private String transDesc;
    //交易日期
    private String transDate;
    //交易时间
    private String transTime;

    public String getDreamValueNo() {
        return dreamValueNo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTransNo() {
        return transNo;
    }

    public void setTransNo(String transNo) {
        this.transNo = transNo;
    }

    public String getTransDesc() {
        return transDesc;
    }

    public String getTransDate() {
        return transDate;
    }

    public void setTransDate(String transDate) {
        this.transDate = transDate;
    }

    public String getTransTime() {
        return transTime;
    }

    public void setTransTime(String transTime) {
        this.transTime = transTime;
    }

    public Integer getDreamValue() {
        return dreamValue;
    }

    public void setDreamValue(Integer dreamValue) {
        this.dreamValue = dreamValue;
    }

    public void setDreamValueNo(String dreamValueNo) {
        this.dreamValueNo = dreamValueNo;
    }

    //梦想值
    private Integer dreamValue;

    public void setTransDesc(String transDesc) throws UnsupportedEncodingException {
        this.transDesc = URLDecoder.decode(transDesc,"UTF-8");
    }
}
